package com.css.zfzx.sjcj.modules.qhsoildynamic.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.sjcj.modules.qhsoildynamic.repository.entity.QhSoilDynamicEntity;
import com.css.zfzx.sjcj.modules.qhsoildynamic.viewobjects.QhSoilDynamicQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author aa
 * @date 2020-11-13
 */

public interface QhSoilDynamicService {

    public JSONObject queryQhSoilDynamics(QhSoilDynamicQueryParams queryParams, int curPage, int pageSize);

    public QhSoilDynamicEntity getQhSoilDynamic(String id);

    public QhSoilDynamicEntity saveQhSoilDynamic(QhSoilDynamicEntity qhSoilDynamic);

    public QhSoilDynamicEntity updateQhSoilDynamic(QhSoilDynamicEntity qhSoilDynamic);

    public void deleteQhSoilDynamics(List<String> ids);

    public List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    public void submitQhSoilDynamics(String ids);

    public String importExcel(MultipartFile file);

    public String exportExcel(String ids, HttpServletResponse response);

    public String exportExcel(List<QhSoilDynamicEntity> areaEntities, HttpServletResponse response);

    JSONObject dataQualityCheck(String drillCodes);

    JSONObject dataQualityCheck(List<QhSoilDynamicEntity> qhSoilDynamicList);
}
